package com.seu.project.seuquiz.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.seu.project.seuquiz.model.dto.userQuestionMap.UserQuestionMapQueryRequest;
import com.seu.project.seuquiz.model.entity.UserQuestionMap;

/**
* @author lenovo
* @description 针对表【user_question_map(用户-题目map表)】的数据库操作Service
* @createDate 2023-07-15 13:47:58
*/
public interface UserQuestionMapService extends IService<UserQuestionMap> {

    long userQuestionMapAdd(String studentId, String questionId, boolean isRight);

    /**
     * 根据查询参数构造queryWrapper
     * @param request
     * @return
     */
    QueryWrapper<UserQuestionMap> getQueryWrapper(UserQuestionMapQueryRequest request);
}
